import type { TreeSelectProps } from 'antd';
import { TreeSelect as AntdTreeSelect } from 'antd';
import { DefaultValueType } from 'rc-tree-select/lib/interface';
import React from 'react';

export type Props<T extends DefaultValueType> = TreeSelectProps<T>;

function TreeSelect<T extends DefaultValueType>(props: Props<T>) {
  return <AntdTreeSelect {...props} />;
}

export default TreeSelect;
